package com.sunshine.ext;

/**
 * @author weihong
 * @date 2021/1/14 13:30
 */
public class FlyAnimal {
    Animal animal = new Animal();

    public FlyAnimal() {
    }

    public FlyAnimal(Animal animal) {
        this.animal = animal;
    }

    public void flying() {
        System.out.println("飞行...");
    }

    public void breathing(){
        animal.breathing();
    }


}
